<template>
	<view class="head">
		<view class="img" @click="back">
			<image src="https://splendid.oss-cn-beijing.aliyuncs.com/static/zhengyulan/back-arrow.png" mode=""></image>
		</view>
		<view class="message">
			<text>自检上报</text>
		</view>
	</view>

	<view class="search">
		<view class="search-conrent">
			<view class="input">
				<input type="text" class="inp" placeholder="请输入企业名字" />
			</view>
			<view class="search-icon" @click="search">
				<image src="https://splendid.oss-cn-beijing.aliyuncs.com/static/zhengyulan/search.png" mode=""></image>
			</view>
			<view class="zizeng" @click="newzeng">
				+自增
			</view>
		</view>
	</view>

	<scroll-view scroll-y="true" class="scrolly-contair">
		<view class="bodys">
			<view class="bodys-content">
				<view class="jjiu">
					<view class="head">
						检测类别：废气、废水
					</view>
					<view class="head-two">
						<view class="headtwo-lefttext">
							项目名称：
						</view>
						<view class="headtwo-righttext">
							河南材料有限公司委托检测
						</view>
					</view>
					<view class="head-three">
						<view class="headthree-lefttext">
							检测日期：
						</view>
						<view class="headthree-righttext">
							2024-09-03
						</view>
					</view>

					<view class="head-four">
						<view class="headfour-lefttext">
							报告日期：
						</view>
						<view class="headfour-righttext">
							2024-09-03
						</view>
					</view>

					<view class="bottom">
						<view class="bottom-left" @click="selfterfeiq">
							查看
						</view>
						<view class="bottom-right" >
							检测报告
						</view>
					</view>
				</view>
				<view class="jjiu">
					<view class="head">
						检测类别：噪声
					</view>
					<view class="head-two">
						<view class="headtwo-lefttext">
							项目名称：
						</view>
						<view class="headtwo-righttext">
							河南材料有限公司委托检测
						</view>
					</view>
					<view class="head-three">
						<view class="headthree-lefttext">
							检测日期：
						</view>
						<view class="headthree-righttext">
							2024-09-03
						</view>
					</view>

					<view class="head-four">
						<view class="headfour-lefttext">
							报告日期：
						</view>
						<view class="headfour-righttext">
							2024-09-03
						</view>
					</view>

					<view class="bottom">
						<view class="bottom-left" @click="selfterzaosheng">
							查看
						</view>
						<view class="bottom-right" @click="testreport">
							检测报告
						</view>
					</view>
				</view>



				<view class="jjiu">
					<view class="head">
						检测类别：废气
					</view>
					<view class="head-two">
						<view class="headtwo-lefttext">
							项目名称：
						</view>
						<view class="headtwo-righttext">
							河南材料有限公司委托检测
						</view>
					</view>
					<view class="head-three">
						<view class="headthree-lefttext">
							检测日期：
						</view>
						<view class="headthree-righttext">
							2024-09-03
						</view>
					</view>

					<view class="head-four">
						<view class="headfour-lefttext">
							报告日期：
						</view>
						<view class="headfour-righttext">
							2024-09-03
						</view>
					</view>

					<view class="bottom">
						<view class="bottom-left" @click="selfterfeiq">
							查看
						</view>
						<view class="bottom-right">
							检测报告
						</view>
					</view>
				</view>

			

















			</view>
		</view>
	</scroll-view>

</template>

<script setup>
	import {
		ref
	} from 'vue';

	let back = () => {
		uni.navigateBack({
			delta: 1,
		})
	}
	// 搜索
	let search = () => {
		// 搜说逻辑
	}
	// 高亮
	var currentindex = ref(0)
	let chose = (index) => {
		currentindex.value = index
	}
	// 分类
	var cartgory = ref([{
		id: 1,
		Text: "分类"
	}, {
		id: 2,
		Text: "废汽"
	}, {
		id: 3,
		Text: "废水"
	}, {
		id: 4,
		Text: "噪声"
	}])

	// feiq
	function selfterfeiq() {
		uni.navigateTo({
			url: "/homePageOther/Selftestingfeiqidetail/Selftestingfeiqidetail"
		})
	}
	// 噪声
	function selfterzaosheng() {
		uni.navigateTo({
			url: "/homePageOther/Selftestzaoshengdeaily/Selftestzaoshengdeaily"
		})
	}
	// 新曾
	function newzeng (){
		uni.navigateTo({
			url: "/homePageOther/Enterprisetesting/Enterprisetesting"
		})
	}
</script>

<style lang="scss" scoped>
	.scrolly-contair{
		height: calc(100vh - 142rpx - 143rpx);
		overflow: auto;
	}
	.head {
		width: 750rpx;
		height: 142rpx;
		background: #0874FA;
		position: relative;
		overflow: hidden;
		
	}

	.img {
		width: 22rpx;
		height: 38rpx;
		position: absolute;
		top: 75rpx;
		left: 40rpx;

		image {
			width: 22rpx;
			height: 38rpx;
		}
	}

	.message {
		width: 220rpx;
		height: 34rpx;
		font-family: Source Han Sans CN;
		font-weight: 500;
		font-size: 36rpx;
		color: #FFFFFF;
		line-height: 34rpx;
		position: absolute;
		top: 75rpx;
		left: 270rpx;

		text {
			display: inline-block;
			width: 220rpx;
			height: 34rpx;
			text-align: center;
			line-height: 34rpx;
		}
	}

	.body {
		width: 100%;
		height: 100%;
		background-color: #f3f5f7;
	}

	// 搜睡哦狂
	.search {
		width: 750rpx;
		// height: 251rpx;
		background-color: #ffffff;

		.search-conrent {
			width: 750rpx;
			height: 143rpx;

			position: relative;

			.input {
				width: 561rpx;
				height: 75rpx;
				position: absolute;
				top: 31rpx;
				left: 29rpx;
				background: #FFFFFF;
				border-radius: 14rpx;
				border: 1px solid #E5E5E5;
				display: flex;
				align-items: center;
				padding-left: 30rpx;
                
				.inp {
					flex: 1;
				}

			}
		}
	}

	.zizeng {
		width: 112rpx;
		height: 74rpx;
		background: #0874FA;
		border-radius: 14rpx;
		font-family: Source Han Sans CN;
		font-weight: 500;
		font-size: 31rpx;
		color: #FFFFFF;
		line-height: 74rpx;
		position: absolute;
		right: 30rpx;
		top: 38rpx;
		text-align: center;
	}

	.search-icon {
		width: 30rpx;
		height: 31rpx;
		position: absolute;
		top: 58rpx;
		right: 180rpx;

		image {
			width: 30rpx;
			height: 31rpx;
		}
	}

	.cartgory {
		width: 691rpx;
		height: 100rpx;
		position: absolute;
		bottom: 20rpx;
		left: 29rpx;
		display: flex;
		justify-content: space-between;
		align-items: center;

		.active {
			font-size: 28rpx;
			color: #0874FA;
			background: #EFF0FC;
			border-radius: 32rpx;
		}

		.cartgory-name {
			width: 123rpx;
			height: 65rpx;
			font-size: 28rpx;
			text-align: center;
			line-height: 65rpx;
		}
	}

	// 内容部分
	.bodys {
		width: 750rpx;
		// height: 100vh;
		background-color: #f3f5f7;
		position: relative;
		overflow: hidden;

		.bodys-content {
			width: 690rpx;
			margin: 0 auto;
			/* 居中显示 */
			overflow: hidden;
			padding-bottom: 90rpx;

			.jjiu {
				width: 690rpx;
			height: 363rpx;
				position: relative;
				background-color: #ffffff;
				margin-top: 10rpx;

				.head {
					width: 384rpx;
					height: 35rpx;
					font-family: Source Han Sans CN;
					font-weight: 500;
					font-size: 32rpx;
					color: #333333;
					line-height: 33rpx;
					position: absolute;
					top: 45rpx;
					left: 29rpx;
					background-color: #FFFFFF;
					font-weight: 700;
					
				}

				.head-one {
					width: 379rpx;
					height: 30rpx;
					position: absolute;
					top: 105rpx;
					left: 29rpx;
					display: flex;
					align-items: center;

					.headone-lefttext {
						width: 130rpx;
						height: 24rpx;
						font-family: Source Han Sans CN;
						font-weight: 400;
						font-size: 26rpx;
						color: #666666;
						line-height: 24rpx;
					}

					.headone-righttext {
						width: 130rpx;
						height: 25rpx;
						font-family: Source Han Sans CN;
						font-weight: 400;
						font-size: 26rpx;
						color: #333333;
						line-height: 25rpx;
					}
				}
			}
		}
	}

	.head-two {
		width: 480rpx;
		height: 30rpx;
		position: absolute;
		top: 115rpx;
		left: 29rpx;
		display: flex;
		align-items: center;

		.headtwo-lefttext {
			width: 130rpx;
			height: 24rpx;
			font-family: Source Han Sans CN;
			font-weight: 400;
			font-size: 26rpx;
			color: #666666;
			line-height: 24rpx;

		}

		.headtwo-righttext {
			width: 320rpx;
			height: 25rpx;
			font-family: Source Han Sans CN;
			font-weight: 400;
			font-size: 26rpx;
			color: #333333;
			line-height: 25rpx;

		}
	}

	.head-three {
		width: 379rpx;
		height: 30rpx;
		position: absolute;
		top: 181rpx;
		left: 29rpx;
		display: flex;
		align-items: center;

		.headthree-lefttext {
			width: 130rpx;
			height: 25rpx;
			font-family: Source Han Sans CN;
			font-weight: 400;
			font-size: 26rpx;
			color: #666666;
			line-height: 25rpx;
		}

		.headthree-righttext {
			width: 160rpx;
			height: 20rpx;
			font-family: Source Han Sans CN;
			font-weight: 400;
			font-size: 26rpx;
			color: #333333;
			line-height: 20rpx;

		}
	}

	.head-four {
		width: 379rpx;
		height: 30rpx;
		position: absolute;
		top: 240rpx;
		left: 29rpx;
		display: flex;
		align-items: center;

		.headfour-lefttext {
			width: 130rpx;
			height: 25rpx;
			font-family: Source Han Sans CN;
			font-weight: 400;
			font-size: 26rpx;
			color: #666666;
			line-height: 25rpx;
		}

		.headfour-righttext {
			width: 160rpx;
			height: 20rpx;
			font-family: Source Han Sans CN;
			font-weight: 400;
			font-size: 26rpx;
			color: #333333;
			line-height: 20rpx;

		}
	}

	.bottom {
		width: 330rpx;
		height: 54rpx;
		position: absolute;
		bottom: 20rpx;
		right: 25rpx;
		display: flex;
		justify-content: space-between;
		align-items: center;

		.bottom-left {
			width: 132rpx;
			height: 54rpx;
			background: #FFFFFF;
			border-radius: 7rpx;
			font-family: Source Han Sans CN;
			font-weight: 500;
			font-size: 28rpx;
			color: #0874FA;
			border: 2px solid #0874FA;
			text-align: center;
			line-height: 54rpx;
		}

		.bottom-right {
			width: 175rpx;
			height: 54rpx;
			background: #0874FA;
			font-family: Source Han Sans CN;
			font-weight: 500;
			font-size: 28rpx;
			color: #FFFFFF;
			border-radius: 7rpx;
			text-align: center;
			line-height: 54rpx;
		}
	}

	.scrolly {
		height: 70vh;
		// max-height: 90vh;
		// overflow: auto;
	}
</style>